package com.situ.springbootenableother.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        // 这个字符串可以不用写死，写到配置文件中，配置要加载的类
        return new String[]{"com.situ.springbootenableother.pojo.User","com.situ.springbootenableother.pojo.Role"};
    }
}
